import styled from "styled-components";
import png1 from "../../../assets/image/WorkBench/jinkang.png";
import png2 from "../../../assets/image/WorkBench/chukuang.png";
import png3 from "../../../assets/image/WorkBench/kuangnei.png";
import png4 from "../../../assets/image/WorkBench/bangPng1.png";
import png5 from "../../../assets/image/WorkBench/bngPng2.png";



export const WorkBenchBox = styled.div`
  padding: 2rem;
  width: 175rem;
  margin-left: 4rem;

  .work-top, .work-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;

    .mengang, .fayunplan, .work-bottom-right, .bangfang, .zhuangche {
      background-color: #fff;
      border-radius: 1rem;
    }
  }

  .work-top {
    height: 20rem;

    .mengang {
      width: 130rem;
      height: 100%;
      box-sizing: border-box;
      padding: 2rem;
      .mengang-title{
        font-weight: bold;
        font-size: 1.8rem;
        color: #333333;
      }
      .mengang-content{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 2rem;
        .mengang-item{
            width: 40rem;
            height: 12rem;
            background: linear-gradient(129deg, #ECF3FB 0%, rgba(246,250,255,0.6) 100%);
            border-radius: 1rem;
            display: flex;
            .item-main{
                flex: 1;
                margin-top: 3rem;
                margin-left: 4rem;
                .mengang-item-title{
                    font-weight: 500;
                    font-size: 1.6rem;
                    color: #38496B;
                }
                .mengang-item-value{
                    font-weight: bold;
                    font-size: 2.5rem;
                    color: #38496B;
                    margin-top: 1.5rem;
                    span{
                        font-size: 1.6rem;
                        margin-left: .3rem;
                    }
                }
            }
            .png1{
                background: url(${png1}) no-repeat;
            }
            .png2{
                background: url(${png2}) no-repeat;
            }
            .png3{
                background: url(${png3}) no-repeat;
            }
            .item-jpg{
                width: 9rem;
                height: 9rem;
                margin-right: 3.5rem;
                margin-top: 2rem;
                background-size: 100% 100%;
            }
        }
      }
    }
    .fayunplan {
      width: 44rem;
      height: 100%;
      box-sizing: border-box;
      padding: 2rem;
      .fayunplan-title{
        font-weight: bold;
        font-size: 1.8rem;
        color: #333333;
      }
      .fayun-item{
        margin-top: 2rem;
        width: 40rem;
        height: 12rem;
        background: linear-gradient(129deg, #ECF3FB 0%, rgba(246,250,255,0.6) 100%);
        border-radius: 1rem;
        display: flex;
        .item-main{
                flex: 1;
                margin-top: 3rem;
                margin-left: 4rem;
                .fayun-item-title{
                    font-weight: 500;
                    font-size: 1.6rem;
                    color: #38496B;
                }
                .fayun-item-value{
                    font-weight: bold;
                    font-size: 2.5rem;
                    color: #38496B;
                    margin-top: 1.5rem;
                    span{
                        font-size: 1.6rem;
                        margin-left: .3rem;
                    }
                }
        }
        .item-jpg{
            width: 9rem;
            height: 9rem;
            margin-right: 4.5rem;
            margin-top: 2rem;
            background-size: 100% 100%;
        }
      }
    }
  }

  .work-bottom {
    height: 62rem;
    .work-bottom-left {
      width: 130rem;
      .bangfang {
        width: 100%;
        height: 30rem;
        margin-bottom: 2rem;
        padding: 1.5rem;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        align-items: center;
        .bangfang-left{
          width: 25rem;
          height: 100%;
          padding: 1rem;
          box-sizing: border-box;
          .left-title{
            font-weight: 600;
            font-size: 1.8rem;
            color: #333;
            margin-bottom: 1rem;
          }
          .left-item{
            width: 100%;
            height: 10.5rem;
            background: #F6F8FA;
            border-radius: 1rem;
            display: flex;
            align-items: center;   
            justify-content: space-around;
            .item-jpg{
              width: 5rem;
              height: 5rem;
              margin-left: 2rem;
            }
            .png1{
              background: url(${png4}) no-repeat;
              background-size: 100% 100%;
            }
            .png2{
              background: url(${png5}) no-repeat;
              background-size: 100% 100%;
            }
            .item-main{
                margin-right: 3rem;
                .bang-item-title{
                    font-weight: 500;
                    font-size: 1.4rem;
                    color: #38496B;
                }
                .bang-item-value{
                    font-weight: bold;
                    font-size: 2.2rem;
                    color: #38496B;
                    margin-top: 1rem;
                    span{
                        font-size: 1.6rem;
                        margin-left: .3rem;
                    }
                }
            }
          }
        }
        .bangfang-main{
          width: 47rem;
          height: 100%;
          .left-title{
            margin-top: 1rem;
            margin-left: 1rem;
            font-weight: 600;
            font-size: 1.8rem;
            color: #333;
            margin-bottom: 2rem;
          }
        }
        .bangfang-right{
          width: 50rem;
          height: 100%;
        }
      }
      .zhuangche{
        width: 100%;
        height: 30rem;
        padding: 1rem 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
        .zhuangche-left{
          width: 30rem;
          padding: 1rem 0;
          box-sizing: border-box;
          .left-title{
            font-weight: 600;
            font-size: 1.8rem;
            color: #333;
            margin-bottom: 1rem;
          }
          .left-content{
            width: 100%;
            height: 24rem;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            .left-item{
              width: 14.4rem;
              height: 10.8rem;
              background: #F6F8FA;
              border-radius: 1rem;
              text-align: center;
              .item-title{
                font-family: PingFang SC;
                font-weight: 500;
                font-size: 1.4rem;
                color: #38496B;
                margin-top: 3rem;
              }
              .item-value{
                  font-weight: bold;
                  font-size: 2.1rem;
                  color: #38496B;
                  margin-top: 1.3rem;
                  span{
                      font-size: 1.6rem;
                  }
                }
            }
          }
        }
        .zhuangche-right{
          width: 90rem;
          height: 100%;
          .right-top{
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 1rem 1rem;
            box-sizing: border-box;
            margin-bottom: 1rem;
            .right-title{
              font-weight: 600;
              font-size: 1.8rem;
              color: #333;
            }
            .right-content{
              display: flex;
              align-items: center;
              :nth-child(1){
                margin-right: 2rem;
                font-family: PingFang SC;
                font-weight: 500;
                font-size: 1.2rem;
                color: #6D7B95;
              }
              :nth-child(2){
                font-weight: 600;
                font-size: 2.2rem;
                color: #38496B;
                background: linear-gradient(179deg, #559CF6 0%, #0163EE 100%);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                span{
                  font-size: 1.6rem;
                  font-weight: 600;
                  margin-left: auto;
                }
              }
            }
          }
        }
      }
    }

    .work-bottom-right {
      width: 44rem;
      height: 100%;
      .log-title{
        margin-top: 2rem;
        margin-left: 2rem;
        font-weight: bold;
        font-size: 1.8rem;
        color: #333333;
      }
      .log-content {
        margin-left: 2rem;
        margin-top: 2rem;
        max-height: 50rem;
        overflow-y: scroll;

        /* &::-webkit-scrollbar {
            width: 4rem;
        } */
            .log-item {
                display: flex; // 水平排列
                align-items: center; // 垂直居中
                width: 100%;
                height: 6rem;
                .log-item-left {
                    width: 3rem;
                    margin-top: 0rem;
                    margin-right: 1rem;
                    height: 3.5rem;
                    .circle {
                        width: 1rem;
                        height: 1rem;
                        border-radius: 50%;
                        background-color: #186DF5;
                        margin-bottom: .8rem;
                        position: relative;
                    }
                    .gray,.gray-list{
                        width: 1rem;
                        height: 1rem;
                        border-radius: 50%;
                        margin-bottom: .8rem;
                        position: relative;
                        background-color: #D6D6D6;
                    }
                    .circle::before {
                        content: '';
                        position: absolute;
                        top: 1.2rem; // 调整虚线的起始位置
                        left: 50%; // 水平居中
                        transform: translateX(-50%); // 修正居中偏移
                        width: 1px; // 设置虚线的宽度
                        height: 400%; // 设置虚线的高度
                        border-left: 1px dashed #186DF5; // 使用虚线样式
                    }
                    .gray::before {
                        content: '';
                        position: absolute;
                        top: 1.2rem; // 调整虚线的起始位置
                        left: 50%; // 水平居中
                        transform: translateX(-50%); // 修正居中偏移
                        width: 1px; // 设置虚线的宽度
                        height: 400%; // 设置虚线的高度
                        border-left: 1px dashed #D6D6D6; // 使用虚线样式
                    }
                }

                .log-item-right {
                    display: flex;
                    flex-direction: column; // 标题和时间竖直排列
                    font-weight: 500;
                    font-size: 1.4rem;
                    color: #333333;

                    .log-item-title {
                        height: 3rem;
                        font-family: PingFang SC;
                        font-weight: bold;
                        font-size: 1.6rem;
                        line-height: 3rem;
                        color: #38496B;
                    }

                    .log-item-time {
                        height: 3rem;
                        font-family: PingFang SC;
                        font-weight: 400;
                        font-size: 1.4rem;
                        line-height: 3rem;
                        color: #38496B;
                    }
                }
            }
        }
    }
  }
`;
